<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Student List</title>
</head>
<form action="/student/list" method="post">
    <label>Name</label>
    <input type="text" name="name">
    <label>Age</label>
    <input type="text" name="age">
    <input type="submit" value="Search">
</form>
<body>
<table border="1">
    <tr>
        <td>Name</td>
        <td>Id</td>
        <td>Age</td>
        <td>action</td>
    </tr>
    <tr th:each="student: ${students}">
        <td th:text="${student.name}"></td>
        <td th:text="${student.Id}"></td>
        <td th:text="${student.age}"></td>
        <td>
            <a th:href="@{/student//delete/{id}(id=${student.id})}">Delete</a>
            <a th:href="@{/student/update/{id}(id=${student.id})}">update</a>
        </td>
    </tr>
</table>
<div>
    <a href="/student/create">Create</a>

</div>
</body>
</html>